<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:73:"/home/wwwroot/www.scp.test/application/index/view/index/examinations.html";i:1527146866;s:59:"/home/wwwroot/www.scp.test/application/index/view/base.html";i:1527146866;s:61:"/home/wwwroot/www.scp.test/application/index/view/weixin.html";i:1527146866;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<meta http-equiv="Cache-Control" content="no-transform" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<title><?php if($data['exam_name']): ?><?php echo $data['exam_name']; else: ?>闪测评<?php endif; ?></title>
	<link rel="stylesheet" href="__CSS__/lui-modal.css">
	<style>
		*{ -webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-tap-highlight-color: transparent;}  
		body {margin: 0;font-family: "微软雅黑";}
		header {padding: 15px;position: fixed;width: calc(100% - 30px);background-color: #fff;top: 0;z-index: 10;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
		.logo-main {display: inline-block;}
		.default-logo {width: 30px;height: 30px;display: inline-block;}
		.default-logo img {width: 100%;vertical-align: middle;}
		.organ-logo {width: 30px;height: 30px;display: inline-block;}
		.organ-logo img {width: 100%;vertical-align: middle;}
		.kulvar {display: inline-block;width: 1px;margin: 0 1px;height: 20px;background-color: #aaa;vertical-align: middle;}
		.organ-name {display: inline-block;font-size: 18px;color: #25272c;vertical-align: middle;}
		.exam-name {display: inline-block;font-size: 16px;vertical-align: middle;}
		.exam-name p {width: 100%;color: #4782f6;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;margin: 0;vertical-align: middle;display: inline-block;}
		footer {height: 45px;line-height: 45px;text-align: center;background-color: #2f2d30;position: fixed;width: 100%;bottom: 0;}
		footer span {font-size: 16px;color: #fff;margin: 0 5px;}
		.tel-text {color: #4171d0;text-decoration: none;font-size: 14px;margin: 0 5px;}
		@media (max-width: 320px) {
			header {padding: 12px 15px;}
			.default-logo {width: 26px;height: 26px;}
			.organ-logo {width: 26px;height: 26px;}
			.organ-name {font-size: 16px;}
			.exam-name {font-size: 14px;}
			footer {height: 40px;line-height: 40px;font-size: 14px;}
		}
	</style>
	
<style>
	.lui-nav {background-color: #f3f3f3;position: fixed;width: 100%;top: 60px;z-index: 10;}
	.lui-content {padding: 112px 0 45px;}
	.lui-nav-icon {padding: 15px;display: inline-block;transition: all .35s;}
	.lui-nav-icon:active {background-color: #ddd;}
	.lui-nav-icon img {width: 10px;vertical-align: middle;}
	.lui-nav-title {display: inline-block;vertical-align: middle;}
	.lui-nav-title span {font-size: 16px;color: #4782f6;margin-right: 15px;}
	.lui-list {margin: 0;padding: 0;list-style: none;}
	li.lui-list-item {padding: 0 15px;transition: all .35s;}
	li.lui-list-item:active {background-color: #f1f1f1;}
	.lui-list-item-inner {border-bottom: 1px solid #edeff0;}
	.lui-list-item-text {padding: 20px 0;display: inline-block;font-size: 16px;color: #25272c;}
	.lui-list-item-right {float: right;position: relative;top: 20px;color: #aaa;font-size: 16px;}
	.lui-list-item-right span {color: #4782f6;}
	.no-data {font-size: 24px;text-align: center;color: #aaa;padding-top: 50px;}
	@media (max-width: 320px) {
		.lui-nav {top: 50px;}
		.lui-nav-icon img {width: 8px;}
		.lui-nav-icon {padding: 10px 15px;}
		.lui-nav-title span {font-size: 14px;}
		.lui-content {padding-top: 91px;padding-bottom: 40px;}
		.lui-list-item-text {font-size: 14px;padding: 15px 0;}
		.lui-list-item-right {font-size: 14px;top: 15px;}
	}
</style>

	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?f6b06c4cb3e837682fc89a82b8838eaa";
			var s = document.getElementsByTagName("script")[0]; 
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</head>
<body>
	<header>
		<div class="logo-main">
			<?php if($org_info['level'] < 3): ?>
			<div class="default-logo">
				<img src="__UPLOAD__/default-logo-48.png" />
			</div>
				<?php if($org_info['level'] > 1): ?>
				<div class="kulvar"></div>
				<?php endif; endif; if($org_info['level'] > 1): ?>
			<div class="organ-logo">
				<img src="<?php echo $org_info['logo']; ?>" />
			</div>
			<?php endif; ?>
		</div>
		<div class="organ-name"><?php echo $org_info['name']; ?></div>
		<?php if($data['exam_name']): ?>
		<div class="exam-name">
			- <p><?php echo $data['exam_name']; ?></p>
		</div>
		<?php endif; ?>
	</header>
	
	
	<div class="lui-nav">
		<a name="back" onclick="history.back();" class="lui-nav-icon">
			<img src="__UPLOAD__/system/icon-back.png" />
		</a>
		<div class="lui-nav-title">
			<span class="subject-text"><?php echo $data['subject']; ?></span>
			<span class="grade-text"><?php echo $data['grade']; ?></span>
		</div>
	</div>
	<div class="lui-contuent">
		<ul class="lui-list">
			<?php if($data['list']): if(is_array($data['list']) || $data['list'] instanceof \think\Collection || $data['list'] instanceof \think\Paginator): if( count($data['list'])==0 ) : echo "" ;else: foreach($data['list'] as $key=>$vo): ?>
			<li class="lui-list-item" data-url="<?php echo url('Index/index/questions',['org_id'=>$org_info['org_id'],'examinations_id'=>$vo['id']]); ?>">
				<div class="lui-list-item-inner">
					<div class="lui-list-item-text"><?php echo msubstr($vo['name'],0,15,'utf-8'); ?></div>
					<div class="lui-list-item-right">共<span><?php echo $vo['exam_num']; ?></span>题</div>
				</div>
			</li>
			<?php endforeach; endif; else: echo "" ;endif; else: ?>
			<div class="no-data">
				暂无数据
			</div>
			<?php endif; ?>
		</ul>
	</div>

	
	<?php if($org_info['level'] < 4): ?>
	<footer><span>软云科技</span><span>商务洽谈</span><a href="tel:400-182-6266" class="tel-text">400-182-6266</a></footer>
	<?php endif; ?>
</body>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/lui-modal.js"></script>

	


<script>
	$(function(){
		var org_level = '<?php echo $org_info['level']; ?>';
		var status = '<?php echo $data['status']; ?>';
		
		if(status == '2'){
			var msg = '<?php echo $data['msg']; ?>';
			$.showForbid(msg);
		}
		
		if(org_level == 4){
			$('.lui-content').css('padding-bottom',0);
		}
		
		$('.lui-list-item').on('click',function(){
			var url = $(this).attr('data-url');
			location.href = url;
		})
		
		
	})
</script>
<?php if($isweixin == 1 and $sign != ''): ?>
 <button class="btn btn_primary" id="checkJsApi" style="display:none;">checkJsApi</button>
 <textarea style=" width:100%; height:500px; display:none;">
  URL:<?php echo $url; ?> <br/>
  appId:<?php echo $sign["AppId"]; ?><br/>
  timestamp:<?php echo $sign["TimeStamp"]; ?><br/>
  nonceStr:<?php echo $sign["NonceStr"]; ?><br/>
  signature:<?php echo $sign["Signature"]; ?><br/>
  wxpic:<?php echo $wxpic; ?><br/>
  wxdesc:<?php echo mb_substr($des,0,50,"utf-8"); ?><br/>
  wxtitle:<?php echo $title; ?><br/>
 </textarea>
 <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
 <script>
 
  wx.config({
      debug     : false,
      appId     : '<?php echo $sign["AppId"]; ?>',
      timestamp : <?php echo $sign["TimeStamp"]; ?>,
      nonceStr  : '<?php echo $sign["NonceStr"]; ?>',
      signature : '<?php echo $sign["Signature"]; ?>',
      jsApiList : [
        'checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'onMenuShareQZone'
      ]
  });
  
  var wxpic   = '<?php echo $wxpic; ?>';
  var wxdesc  = '<?php echo mb_substr($des,0,50,"utf-8"); ?>';
  var wxtitle = '<?php echo $title; ?>';
  var wxurl   = '<?php echo $url; ?>';
  wx.ready(function () {
	
  document.querySelector('#checkJsApi').onclick = function () {
    wx.checkJsApi({
      jsApiList: [
        'checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'onMenuShareQZone'
      ],
      success: function (res) {
        alert(JSON.stringify(res));
      }
    });
  };
	//分享给朋友
  
	  wx.onMenuShareAppMessage({
	    title  : wxtitle,
	    desc   : wxdesc,
	    link   : wxurl,
	    imgUrl : wxpic,
	    trigger: function (res) {},
	    success: function (res) {},
	    cancel: function (res) {},
	    fail: function (res) {}
	  });
    
	//分享到朋友圈
      wx.onMenuShareTimeline({
        title   : wxtitle,
        link    : wxurl,
        imgUrl  : wxpic,
        trigger : function (res) {},
        success : function (res) {},
        cancel  : function (res) {},
        fail    : function (res) {}
      });
    
    //分享到QQ
	
	  wx.onMenuShareQQ({
		title    : wxtitle,
		desc     : wxdesc,
		link     : wxurl,
		imgUrl   : wxpic,
		trigger  : function (res) {},
		complete : function (res) {},
		success  : function (res) {},
		cancel   : function (res) {},
		fail     : function (res) {}
	  });
    
	//分享到微博
   
      wx.onMenuShareWeibo({
        title    : wxtitle,
        desc     : wxdesc,
        link     : wxurl,
        imgUrl   : wxpic,
        trigger  : function (res) {},
        complete : function (res) {},
        success  : function (res) {},
        cancel   : function (res) {},
        fail     : function (res) {}
      });
    
	//分享到QZone
    
      wx.onMenuShareQZone({
        title    : wxtitle,
        desc     : wxdesc,
        link     : wxurl,
        imgUrl   : wxpic,
        trigger  : function (res) {},
        complete : function (res) {},
        success  : function (res) {},
        cancel   : function (res) {},
        fail     : function (res) {}
     });
   
  
 });
 wx.error(function (res) {
  alert(res.errMsg);
 });
 </script>
<?php endif; ?>

<script>
	$(function(){
		var winW = $(window).width();
		var logoW = $('.logo-main').width();
		var nameW = $('.organ-name').width();
		$('.exam-name').css('width',winW - logoW - nameW - 55);
	})
</script>
</html>